<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
    <title>Word模板配置</title>
    <script src="/TFUI/libs/jquery/jquery-1.8.3.min.js"></script>
    <link href="/TFUI/libs/ZUI/css/zui.css" rel="stylesheet">
    <script src="/TFUI/libs/ZUI/js/zui.min.js"></script>
    <script src="/TFUI/libs/ZUI/lib/kindeditor/kindeditor.min.js"></script>
    <script src="/TFUI/js/public.js"></script>
    <script type="text/javascript" src="/TFUI/js/utils/CommonUtil.js"></script>
     <script type="text/javascript" src="/TFUI/js/common.js"></script>
	<script type="text/javascript" src="/views/login/loginFilter.js"></script>
	<script type="text/javascript" src="/views/wordTemplate/wordTemplate.js"></script>
	
	<style type="text/css">
	
		.wordTemplateRecordDiv:hover{
			background:pink;
		}
		
	</style>
	
</head>

<body  menuNo="word_template_menu">
	
	<div style="margin-top:2px;">
	
		<div style="width:76%;float:left;text-align:center;margin-left:3px;">
			<textarea id="MyKindeditor" name="content" class="form-control kindeditor" style="height:510px;"></textarea>
			<button type="button" class="btn btn-default" data-dismiss="modal" style="margin-top:5px;" onclick="WordTemplate.openChooseInsertLabelWindow();">插入标签</button>
			<button type="button" class="btn btn-default" data-dismiss="modal" style="margin-top:5px;" onclick="WordTemplate.openSaveTemplateWindow(2);">保存</button>
			<button type="button" class="btn btn-default" data-dismiss="modal" style="margin-top:5px;" onclick="WordTemplate.openSaveTemplateWindow(1);">存为新模板</button>
		</div>
		
		<div style="margin-left:3px;border-left:1px solid #ccc;width:23%;height:99vh;float:left;padding: 0px 5px;overflow-y:auto;" id="wordTemplateRecordDiv">
			
<!-- 			<div  style="width:100%;line-height:26px;margin-top:5px;border:1px solid #ccc;">
			    <span onclick="editPrintConfig(this)" class="col-sm-2" style="width:82%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:bold;cursor:pointer;color:green;" title="DEFAULT_BE_URINARY_DRUG_SIFT_LABEL">DEFAULT_BE_URINARY_DRUG_SIFT_LABEL</span>&nbsp;&nbsp;
			    <span  style="width:10%;">
			    	<i  class="icon icon-download" style="cursor:pointer;" onclick="exportPrintConfig(0)" title="导出word"></i>
				    <i  class="icon icon-trash" style="cursor:pointer;" onclick="deletePrintConfig(0)" title="删除模板"></i>
				</span>
			</div>
 -->						
		</div>
		
	</div>
	
	<!-- 新增模板弹窗start -->
	<div class="modal fade" id="addWordTemplateWindow">
	  <div class="modal-dialog">
	    <div class="modal-content">
	      <div class="modal-header">
	        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
	        <h4 class="modal-title" id="saveTemplateTitle">保存模板</h4>
	      </div>
	      <div class="modal-body" style="padding:20px;">
				<form class="form-horizontal">
				
					
					<div class="form-group">
						<label for="templateName" class="col-sm-2">模板名称</label>
						<div class="col-md-6 col-sm-10">
							<input type="text" class="form-control" id="templateName" autocomplete="off"  placeholder="必填"/>
						</div>
					</div>
					
					<div class="form-group">
						<label for="templateNo" class="col-sm-2">模板编号</label>
						<div class="col-md-6 col-sm-10">
							<input type="text" class="form-control" id="templateNo" autocomplete="off"  placeholder="必填"/>
						</div>
						<div class="col-md-2">
							<button class="btn" type="button" onclick="WordTemplate.createTemplateNoForInput()">生成编号</button>
						</div>
					</div>
					
			
				</form>				  
	      </div>
	      
	      <div class="modal-footer">
	        <button type="button" class="btn btn-default closeWindowBtn" data-dismiss="modal">取消</button>
	        <button type="button" class="btn btn-primary"  onclick="WordTemplate.saveTemplate();">确定</button>
	      </div>
	      
	    </div>
	  </div>
	</div>
	<!-- 新增模板弹窗end -->
	
	<!-- 确认删除弹窗start -->
	<div class="modal fade" id="deleteTemplateWindow">
	  <div class="modal-dialog">
	    <div class="modal-content">
	      <div class="modal-header">
	        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
	        <h4 class="modal-title">提示</h4>
	      </div>
	      <div class="modal-body" style="padding:20px;">
				
				<h4 style="text-align:center;">
					<i class="icon icon-trash icon-2x"></i>&nbsp;&nbsp;确认要删除模板吗?
				</h4>
			  	
	      </div>
	      
	      <div class="modal-footer">
	      	<button type="button" class="btn btn-default closeWindowBtn" data-dismiss="modal">关闭</button>
	      	<button type="button" class="btn btn-primary" id="deleteSysUserBtn" onclick="WordTemplate.deleteTemplate();">确定</button>
	      </div>
	      
	    </div>
	  </div>
	</div>
	<!-- 确认删除弹窗end -->
	
	<!-- 选择标签弹窗start -->
	<div class="modal fade" id="chooseInsertLabelWindow">
	  <div class="modal-dialog">
	    <div class="modal-content">
	      <div class="modal-header">
	        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
	        <h4 class="modal-title">选择要插入的标签</h4>
	      </div>
	      <div class="modal-body" style="padding:20px;">
				<form class="form-horizontal">
					 
					<div class="form-group">
						<label for="edit_typeCnName" class="col-sm-2">标签库</label>
						<div class="col-md-6 col-sm-10">
							<select class="form-control" id="libNameSelect" onchange="WordTemplate.changeLibNameSelect();" >
							
							</select>
						</div>
					</div>
					
					<div class="form-group">
						<label for="edit_remark" class="col-sm-2">标签信息</label>
						<div class="col-md-10" id="detail_markInfoList">
						
						</div>
					</div>
					
				</form>				  
	      </div>
	      
	      <div class="modal-footer">
	        <button type="button" class="btn btn-default closeWindowBtn" data-dismiss="modal">关闭</button>
	      </div>
	      
	    </div>
	  </div>
	</div>
	<!-- 选择标签弹窗end -->
	

</body>

</html>
